/*
 * @Author: wwssaabb
 * @Date: 2021-07-08 17:33:27
 * @LastEditTime: 2021-07-13 16:59:51
 * @FilePath: \demo\blog_demo\model\connect.js
 */

const mongoose=require('mongoose')

mongoose.connect('mongodb://joker:lx1094577536@8.129.105.10:27017/test',{
  useNewUrlParser:true,
  useUnifiedTopology:true,
  useCreateIndex:true
}).then(()=>console.log('数据库连接成功！'))
  .catch(err=>console.log(err,'连接数据库失败！'))


